﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Things.ThingsWeb.GoodsOrders
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					Guid GoodsOrdersID=new Guid(strid);
					ShowInfo(GoodsOrdersID);
				}
			}
		}
		
	private void ShowInfo(Guid GoodsOrdersID)
	{
		Things.BLL.GoodsOrders bll=new Things.BLL.GoodsOrders();
		Things.Model.GoodsOrders model=bll.GetModel(GoodsOrdersID);
		this.lblGoodsOrdersID.Text=model.GoodsOrdersID.ToString();
		this.lblBuyerAccount.Text=model.BuyerAccount;
		this.lblBuyerAddress.Text=model.BuyerAddress;
		this.lblTotalPrice.Text=model.TotalPrice.ToString();
		this.lblBuyDate.Text=model.BuyDate.ToString();
		this.lblSendDate.Text=model.SendDate.ToString();
		this.lblCancelDate.Text=model.CancelDate.ToString();
		this.lblStatus.Text=model.Status;
		this.lblIsCompleted.Text=model.IsCompleted?"是":"否";
		this.lblModifiedDate.Text=model.ModifiedDate.ToString();

	}


    }
}
